using Cysharp.Threading.Tasks;
using UnityEngine;
namespace MiniAnimation
{
    public class IntervalNode : SequenceNode
    {
        private float interval;

        public IntervalNode(float interval) : base()
        {
            this.interval = interval;
        }
        protected override async UniTask OnExcute()
        {
            await UniTask.Delay((int)(interval * 1000),cancellationToken:Cts.Token);
        }
    }
}
